import { CateItem } from "../type/cateTypes"
import { ResponseType } from "../type/response"
import request from "../utils/request"
enum Enum {
  fetchCategoryTreeAPI = "/index/findCategoryTree",
}
/** 
 * @description 获取商品分类的接口 
 */
export const fetchCategoryTreeAPI = () => request.get<ResponseType<CateItem[]>>(Enum.fetchCategoryTreeAPI)